/*
 * @Author: 大D
 * @email: 857216393@qq.com
 * @Date: 2024-01-19 15:30:23
 * @Description:
 */
// 引入字体
import './assets/fonts/iconfont.css';
// 引入动画css
import 'animate.css';
// 引入主题dark样式
import 'element-plus/theme-chalk/dark/css-vars.css';
import './assets/base.css';
import './assets/theme.css';

import { createApp } from 'vue';
import pinia from '@/stores';
import { useThemeStore } from '@/stores/themeStore';
// 获取用户ip
import { getIpFun } from './utils/getIp';

import App from './App.vue';
import router from './router';
const app = createApp(App);
// 引入指令
import directive from '@/directives';
directive(app);
getIpFun(app);
app.use(pinia);
app.use(router);

// 读取主题
useThemeStore().editBodyClass();
app.mount('#app');

// 欢迎词
ElNotification({
  title: '欢迎',
  message: '欢迎来到fiona的搬砖人de博客！时间仓促，很多不足，欢迎留言指正',
  customClass: 'ElNotification',
  duration: 5000
});
